<!DOCTYPE html>
<html lang="en">

	<head>
		<!-- BEGIN META -->
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="Custom Theme">
		<meta http-equiv="refresh" content="<?php echo $error['wait'];?>;url=<?php echo $error['url'];?>" />
		<!-- END META -->
		<!-- BEGIN SHORTCUT ICON -->
		<link rel="shortcut icon" href="<?php echo base_url('Public/img/favicon.ico');?>">
		<!-- END SHORTCUT ICON -->
		
		<!-- BEGIN STYLESHEET -->
		<link href="<?php echo base_url('Public/css/bootstrap.min.css');?>" rel="stylesheet">
		<!-- BOOTSTRAP CSS  -->
		<link href="<?php echo base_url('Public/css/bootstrap-reset.css');?>" rel="stylesheet">
		<!-- BOOTSTRAP CSS  -->
		<link href="<?php echo base_url('Public/assets/font-awesome/css/font-awesome.css');?>" rel="stylesheet">
		<!-- FONT AWESOME CSS  -->
		<link href="<?php echo base_url('Public/css/style.css');?>" rel="stylesheet">
		<!-- THEME BASIC CSS  -->
		<link href="<?php echo base_url('Public/css/style-responsive.css');?>" rel="stylesheet">
		<!-- THEME RESPONSIVE CSS  -->
		<link href="<?php echo base_url('Public/css/pkadmin.css');?>" rel="stylesheet">
		<!-- PKADMIN CSS -->
		
		<!--[if lt IE 9]>
		      <script src="<?php echo base_url('Public/js/html5shiv.js');?>"></script>
		      <script src="<?php echo base_url('Public/js/respond.min.js');?>"></script>
		    <![endif]-->
		<!-- END STYLESHEET -->
		<title>
			<?php echo $setting['title'].' Power by '.$setting['sitename'];?>
		</title>
	</head>

	<body class="body-404">
		<div class="container">
			<!-- BEGIN MAIN CONTENT -->
			<section class="error-wrapper">
				<img src="<?php echo base_url('Public/img/error.png');?>">
				<h3><?php echo $error['msg'];?></h3>
				<p class="page-404">
					<span>页面自动</span>
					<a href="<?php echo $error['url'];?>">跳转</a>
					<span>等待时间：</span>
					<span class="second"><?php echo $error['wait'];?></span>
				</p>
			</section>
			<!-- END MAIN CONTENT -->
		</div>
	</body>
	<!-- BEGIN JS -->
	<script src="<?php echo base_url('Public/js/jquery.js');?>"></script>
	<!-- BASIC JQUERY LIB. JS -->

	<script type="text/javascript">
		$(function() {
			var wait = $(".second").html();
			timeOut();
			/**
			 * 实现倒计时
			 */
			function timeOut() {
				if(wait != 0) {
					setTimeout(function() {
						$('.second').text(--wait);
						timeOut();
					}, 1000);
				}
			}
		});
	</script>
	<!-- END JS -->

</html>